import request from '@/utils/request'

// 查询列表
export function listExamineNew(data) {
  return request({
    url: '/credit/examineNew/list',
    method: 'post',
    data:data 
  })
}

// 查询详细
export function getExamineNew(examineId) {
  return request({
    url: '/credit/examineNew' + examineId,
    method: 'get'
  })
}

// 查询单条通过orderId
export function getExamineNewByOrderId(orderId) {
    return request({
      url: '/credit/examineNew/byOrderId',
      method: 'post',
      data: orderId
    })
  }

// 新增
export function addExamineNew(data) {
  return request({
    url: '/credit/examineNew',
    method: 'post',
    data: data
  })
}

// 修改
export function updateExamineNew(data) {
  return request({
    url: '/credit/examineNew',
    method: 'put',
    data: data
  })
}

// 删除
export function delExamineNew(examineIds) {
  return request({
    url: '/credit/examineNew' + examineIds,
    method: 'delete'
  })
}

//机器审核
export function machineAudit(data) {
  return request({
    url: '/credit/examineNew/machineAudit',
    method: 'post',
    data: data
  })
}

//获取审核人用户名
export function getUserName(){
  return request({
    url:'/credit/examineNew/getUserName',
    method:'get'
  })
}